clear all;
clc;

load mnist_train_all;

tic
[dist,nn] = findknn(double(data'),10);
toc